import request from './request'

//密码登录
export function loginByPwAPI(data) {
  return request({
    url: 'login',
    method: 'post',
    data,
  })
}

//创建单个账号
export function createAccountAPI(data) {
  return request({
    url: 'create_account',
    method: 'post',
    data,
  })
}

//修改电话
export function changePhoneAPI(data) {
  return request({
    url: 'change_phone',
    method: 'post',
    data,
  })
}

//修改密码：发送验证码
export function changePwSendAPI(data) {
  return request({
    url: 'change_pwd_send',
    method: 'post',
    data,
  })
}

//修改密码
export function changePwAPI(data) {
  return request({
    url: 'change_pwd_verify',
    method: 'post',
    data,
  })
}
